﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using HandlingInput;
using GameCore;

namespace GameObject
{
    public class StaticObject: VisibleGameEntity
    {
        public virtual bool Init(int _numberSprite, string[] strResource, string name)
        {
            Name = Name;
            this.List_Action = new List<ActionButton>();
            _nsprite = _numberSprite;
            _sprite = new Sprite[_nsprite + 1];
            _lsprite = new List<Vector2>();

            for (int i = 0; i < _nsprite; i++)
            {
                Texture2D[] texture = new Texture2D[strResource.Length];
                for (int j = 0; j < strResource.Length; j++)
                {
                    texture[j] = GlobalDefine.Content.Load<Texture2D>(@"Pictures/" + strResource[j]);
                }
                _sprite[i] = new Sprite(0, 0, 0, 0, texture);
            }

            return true;
        }
    }
}
